<?php

class Model_Degree extends MY_Model {
    
    const DB_TABLE = 'degree';
    const DB_TABLE_PK = 'id';
    
    
    public $id;
    public $name;
    public $note;
    public $active;
    
     public function search($name)
    {
        return $this->db->query("
                select * from gender 
                where name like '%".$name."%' and active=1;");
        
    }
} 